﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreShop.Model
{
    [SugarTable("corecmstakeoutdetail", TableDescription = "外卖配详细")]
    public class corecmstakeoutdetail
    {
        /// <summary>
        /// 订单id
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "orderId", IsPrimaryKey = true)]
        public System.Int64 orderId { get; set; }


        /// <summary>
        /// 订单展示Id，用户下单时看到的订单号
        /// </summary>
        public System.Int64 orderIdView { get; set; }

        /// <summary>
        /// 预计送达时间。即时单：字段值为配送系统提供的预计送达时间。 到店自取单：字段值为用户到店取餐时间。 预订单：字段值为用户下单时填写的预计送达时间。 该信息默认不推送，如有需求可联系技术合作中心工作人员开通
        /// </summary>
        public long estimateArrivalTime { get; set; }


        /// <summary>
        /// 用户预计送达时间。即用户选择或填写的预计送达时间。“立即送达”时为0。单位:秒, 如取餐类型为到店自取，则该时间为用户自选的到店自取时间。
        /// </summary>
        public long deliveryTime { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "deliveryTimeStr", IsIgnore = true)]
        public string deliveryTimeStr { get; set; }

        /// <summary>
        /// 门店当天的订单流水号 每天流水号从1开始
        /// </summary>
        public int daySeq { get; set; }

        /// <summary>
        /// 用户下单时间 整性数据，单位是秒
        /// </summary>
        public long orderSendTime { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        public string recipientPhone { get; set; }

        /// <summary>
        /// 收货人姓名
        /// </summary>
        public string recipientName { get; set; }

        /// <summary>
        /// 收货人地址
        /// </summary>
        public string recipientAddress { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        public string caution { get; set; }

        /// <summary>
        /// 打包费
        /// </summary>
        /// 
        [SqlSugar.SugarColumn(ColumnName = "packageBagFee", IsIgnore = true)]
        public decimal packageBagFee { get; set; }

        /// <summary>
        /// 配送费
        /// </summary>
        public decimal shippingFee { get; set; } = 0;

        [SqlSugar.SugarColumn(ColumnName = "title", IsIgnore = true)]
        public string title { get; set; }

        /// <summary>
        /// 收货人电话
        /// </summary>
        [SqlSugar.SugarColumn(ColumnName = "phone", IsIgnore = true)]
        public string phone { get; set; }

        /// <summary>
        /// 店名
        /// </summary>
        public string poiName { get; set; }

        public long ctime { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "ctimeStr", IsIgnore = true)]
        public string ctimeStr { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "dinnersNumber", IsIgnore = true)]
        public int dinnersNumber { get; set; }

        [SqlSugar.SugarColumn(ColumnName = "remark", IsIgnore = true)]
        public string remark { get; set; }
    }
}
